
#include <stdio.h>

main()
{
     int c, t;

     t = ' ';
     while ((c = getchar()) != EOF){
	  if (c != ' ' || t != ' ')
	       putchar(c);
	  t = c;
     }
}
